import React, { Component } from 'react';

class Login extends Component {
  constructor() {
    super();
    this.state = {}
  }
  login() {
    localStorage.setItem('isLogin', true)
  }
  render() {
    return (
      <div>
        <button onClick={()=>this.login()}>login</button>
      </div>
    );
  }
}

export default Login;
